<%@ page language="java" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'loginsuccess.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
<body>
<center>
<table width="245" height="400" border="0" align="center">
  <tr><td height="200"></td></tr>
  <tr>
    <td width="239" align="center">登录成功！等待3秒后页面自动跳转</td>
    <%response.setHeader("Refresh","3;URL=/main.jsp");%>
  </tr>
  <tr>
    <td><a href="/main.jsp">如果浏览器不支持自动跳转，请按此转入登入页面</a></td>
  </tr>
  <tr>
    <td align="center">copyright for 209chatroom </td>
  </tr>
</table>
</center>
</body>
</html>
